from service.food_service import FoodService
from study321.menu.service.user_service import UserService


class Starter(object):
    def __init__(self):
        self.food_service=FoodService()
        self.user_service=UserService()

    def run(self):
        while True:
            print("1、登录 2、注册 3、退出")
            menu_id = input("接受：")
            match menu_id:
                case "1":
                    res = self.user_service.login()
                    if res == 1:
                        self.__second_menu()
                case "2":
                    self.user_service.register_user()
                case "3":
                    break
                case _:
                    print("暂无该选项")

    def __second_menu(self):
        while True:
            print("1、菜单添加 2、菜单删除 3、菜单修改 4、查询单个菜品  5、查询所有菜品 6、退出登录")
            menu_id = input("请输入你的选择：")
            ####

if __name__ == '__main__':
    Starter().run()